/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.perspecte.vsflean.ui.backingbeans;

import com.perspecte.vsflean.app.pojo.MaterialIssue;
import com.perspecte.vsflean.app.pojo.MaterialKanban;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Arvind
 */
public class KanbanBean {

    private List<MaterialKanban> materialKanbanList = new ArrayList<MaterialKanban>();
    private List<MaterialIssue> materialIssueList = new ArrayList<MaterialIssue>();

    public KanbanBean() {
        populateMaterialKanbanList();
        populateMaterialIssueList();
    }

    /**
     * @return the materialKanbanList
     */
    public List<MaterialKanban> getMaterialKanbanList() {
        return materialKanbanList;
    }

    /**
     * @param materialKanbanList the materialKanbanList to set
     */
    public void setMaterialKanbanList(List<MaterialKanban> materialKanbanList) {
        this.materialKanbanList = materialKanbanList;
    }

    /**
     * @return the materialIssueList
     */
    public List<MaterialIssue> getMaterialIssueList() {
        return materialIssueList;
    }

    /**
     * @param materialIssueList the materialIssueList to set
     */
    public void setMaterialIssueList(List<MaterialIssue> materialIssueList) {
        this.materialIssueList = materialIssueList;
    }

    private void populateMaterialKanbanList() {
        materialKanbanList = new ArrayList<MaterialKanban>();

        MaterialKanban mi = new MaterialKanban("12", "11345", "ItemA", "ModelA", 200, "Line-1", "Kanban-No-1", "Dec 12, 11:30AM", "Approved");
        materialKanbanList.add(mi);
        mi = new MaterialKanban("13", "11211", "ItemB", "ModelA", 200, "Line-1", "Kanban-No-2", "Dec 12, 11:30AM", "Approved");
        materialKanbanList.add(mi);
        mi = new MaterialKanban("14", "11356", "ItemC", "ModelA", 200, "Line-1", "Kanban-No-3", "Dec 12, 11:30AM", "Pending");
        materialKanbanList.add(mi);
        mi = new MaterialKanban("15", "11356", "ItemC", "ModelB", 200, "Line-2", "Kanban-No-4", "Dec 12, 04:30PM", "Pending");
        materialKanbanList.add(mi);
        mi = new MaterialKanban("16", "11345", "ItemA", "ModelA", 200, "Line-1", "Kanban-No-5", "Dec 12, 05:30PM", "Pending");
        materialKanbanList.add(mi);
        mi = new MaterialKanban("17", "11345", "ItemA", "ModelC", 200, "Line-3", "Kanban-No-6", "Dec 13, 11:30AM", "Pending");
        materialKanbanList.add(mi);
        mi = new MaterialKanban("18", "11211", "ItemB", "ModelB", 200, "Line-2", "Kanban-No-7", "Dec 13, 11:30AM", "Pending");
        materialKanbanList.add(mi);

    }

    private void populateMaterialIssueList() {
        materialIssueList = new ArrayList<MaterialIssue>();

        MaterialIssue mi = new MaterialIssue("12", "11345", "ItemA", "ModelA", 200, "Line-1", "Kanban-No-1", "Dec 12, 11:30AM", "Pending");
        materialIssueList.add(mi);
        mi = new MaterialIssue("13", "11211", "ItemB", "ModelA", 200, "Line-1", "Kanban-No-2", "Dec 12, 11:30AM", "Pending");
        materialIssueList.add(mi);
        mi = new MaterialIssue("14", "11356", "ItemC", "ModelA", 200, "Line-1", "Kanban-No-3", "Dec 12, 11:30AM", "Pending");
        materialIssueList.add(mi);
        mi = new MaterialIssue("15", "11356", "ItemC", "ModelB", 200, "Line-2", "Kanban-No-4", "Dec 12, 04:30PM", "Pending");
        materialIssueList.add(mi);
        mi = new MaterialIssue("16", "11345", "ItemA", "ModelA", 200, "Line-1", "Kanban-No-5", "Dec 12, 05:30PM", "Pending");
        materialIssueList.add(mi);
        mi = new MaterialIssue("17", "11345", "ItemA", "ModelC", 200, "Line-3", "Kanban-No-6", "Dec 13, 11:30AM", "Pending");
        materialIssueList.add(mi);
        mi = new MaterialIssue("18", "11211", "ItemB", "ModelB", 200, "Line-2", "Kanban-No-7", "Dec 13, 11:30AM", "Pending");
        materialIssueList.add(mi);
    }
}
